<{assign var="min_ititle" value="报名工长设计"}>
<{include file="block/mini-header.html"}>
<form action="<{link ctl='gz:yuyue' http='empty'}>" mini-form="sign-form" method="post" >
<input name="uid" type="hidden" class="input" value="<{$gz_id}>" />
<h2>我想请工长<font class="red" style="font-size: 18px;"><{$detail.name}></font>帮我解决烦恼！</h2>
<div class="yuyBook">
	<dl>
		<dt class="name">
			您的称呼
		</dt>
		<dd>
		<input name="data[contact]" type="text" class="text" value=""  placeholder="请输入您的称呼"//>
		</dd>
	</dl>
	<dl>
		<dt class="tel">
			手机号码
		</dt>
		<dd>
		<input id="mobile" name="mobile" type="text" class="text" value=""  placeholder="请输入手机号码"//>
		</dd>
	</dl>
	<{if $yuyue_yz}>
	<dl>
		<dt class="yzm">验 证 码</dt>
		<dd class="short"><input class="text short" type="text"  name="verifycode" placeholder="请输入验证码"/></dd>
		<span id='code'  class="goYz">
			<a id='show_loading' class="none pointcl">...</a>
			<a login="passport:sendsms" class="pointcl">&nbsp&nbsp发送验证码</a>
		</span>
		<!--<img title="点击刷新验证码" verify="#yuyue-verify" src="<{link ctl='magic:verify' http='ajax'}>&_=<{$pager.dateline}>" id="yuyue-verify"/>-->
	</dl>
	 <{/if}>
	 <div class="yuyue_bottom"><input type="submit" value="立即报名" class="btn btn_sub_big" /><b class="yuyue_tel">装修热线：<font class="fontcl2"><{$CONFIG.site.phone}></font></b></div>
</div>
</form>
<script>
	(function(K,$) {
		$("[verify]").click(function () {
			$($(this).attr("verify")).attr("src", "<{link ctl='magic:verify' http='ajax'}>&_" + Math.random());
		});
			$("[login]").click(function (e) {
				var link = "<{link ctl='passport/sendsms'  arg0='#mobile#' http='base'}>";
				var mobile = $("#mobile").val();
				var last_time = 60;
				var __interval = null;
				$.getJSON(link.replace("#mobile#", mobile), function (ret) {
					if (ret.error) {
						Widget.MsgBox.error(ret.message.join(""));
					} else {
						__interval = setInterval(function () {
							last_time--;
							if (last_time > 0) {
								$("#show_loading").html("重新获取（" + last_time + "）秒").show();
								$("[login]").hide();
							} else {
								clearInterval(__interval);
								last_time = 60;
								$("#show_loading").hide();
								$("[login]").show();
							}
						}, 1000);
					}
				});
			});

	})(window.KT, window.jQuery);
</script>
<{include file="block/mini-footer.html"}>